<%--
  Created by IntelliJ IDEA.
  User: 乔见东方姑娘
  Date: 2023/10/7
  Time: 11:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@page isELIgnored="false" %>
<html>
<head>
    <title>消息</title>
    <script>
        var time=3;
        function forwards(){
            time--;
            document.getElementById("t").innerText=time;
            if(time==0){
                window.location.href="login.jsp"
            }
        }
        setInterval(forwards,1000)
    </script>
</head>
<body>
<h2>${sessionScope.msg} &emsp; <span id="t">3</span>秒后跳转到登录页面</h2>
<h2>如果没有自动跳转......,<a href="/login.jsp">点我跳转</a></h2>

</body>
</html>


